package com.example.consumerdemo.demos.web;

import com.example.consumerdemo.MyFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther: 王振方
 * @date: 2023 12 26 15 55
 * @description:
 */
@RestController
public class TestController {

    @Autowired
    private MyFeignClient feignClient;

    @RequestMapping("/test")
    public String test(){
        String result = feignClient.hello();
        System.out.println("result is :"+ result);
        return result;
    }



}
